package edu.hunau.cxb19.oop.class17.enums;

/**
 *
 * @author hb
 *
 *         2020-03-18 14:41:19
 */
public enum Gender implements Info {
	MALE("男"){
		public void info() {
			System.out.println("代表男性");
		}
	}, FEMALE("女"){
		public void info() {
			System.out.println("代表女性");
		}
	};// 性别两个实例

	private final String desc;
	private Gender(String desc) { this.desc = desc; }
	public String getDesc() { return desc; }
}

interface Info {
	public void info();
}
